From: Jonas Dreßler Date: Wed, 16 Feb 2022 19:04:03 +0000 (+0100) Subject: dash: Subtract vertical margins from availHeight X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~516^2^2~79 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2607880bf630c91869bea28c63b575970af5a057;p=gnome-shell.git dash: Subtract vertical margins from availHeight The vertical margins are part of this._maxHeight, so we need to subtract it in order to propery limit icon sizes when the available height is too small. Part-of: --- diff --git a/js/ui/dash.js b/js/ui/dash.js index 311117471..7c449f851 100644 --- a/js/ui/dash.js +++ b/js/ui/dash.js @@ -610,6 +610,7 @@ var Dash = GObject.registerClass({ (iconChildren.length - 1) * spacing; let availHeight = this._maxHeight; + availHeight -= this.margin_top + this.margin_bottom; availHeight -= this._background.get_theme_node().get_vertical_padding(); availHeight -= themeNode.get_vertical_padding(); availHeight -= buttonHeight - iconHeight;